#include "stack.h"
int main() {
	SL s;
	Init(&s);
	Pull(&s, 1);
	Pull(&s, 2);
	Pull(&s, 3);
	Pull(&s, 4);
	Pull(&s, 5);
	//Pull(&s, 6);


	while (!IsEmpty(&s)) {
		printf("%d ", Topdata(&s));
		Pop(&s);
	}
	Destroy(&s);
	return 0;
}